警告:这个程序有一个逻辑错误!它不会创建错误消息,但它没有做它应该做的事情。

规则: while 循环仅在条件为True时运行。

  • 点击运行并读取控制台中的输出。循环应该运行 5 次!
  • 通过在 while 循环中使用True而不是False来修复程序。
  • 点击 运行以查看您是否修复了该程序。固定好后点击 提交 接下来

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)